import api from '@/core/Api'
import urls from '@/router/urls'

class Service {
  async getPage ({classId, keyword}, page, size) {
    try {
      let res = await api.aget(urls.getImageStorageList(), {
        data: {
          classifyId: classId,
          keyword: keyword,
          page: page,
          size: size
        }
      })
      // console.log(res)
      if (res.data.code === 0) {
        return res.data.data
      }
    } catch (e) {
      console.log(e)
    }
    return []
  }
}

export default new Service()
